//
//  HRAppDelegate.h
//  haierapp
//
//  Created by zhang on 14-8-5.
//  Copyright (c) 2014年 haier. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface HRAppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;

- (void)saveContext;
- (NSURL *)applicationDocumentsDirectory;

- (UIViewController *)topViewController;

- (void)showUserLoginCompletion:(void (^)(void))completion;

@end
